package Review;

import java.util.Arrays;

public class ReviewString2 {

    public static void main(String[] args) {
        String s = "abcde";
        String s1 = "abcdbbb";
        String s2 = "abcbdbeb";
        String s3 = "    ab c   ";
        System.out.println(s.charAt(2));
        System.out.println(s.concat("bbb"));
        System.out.println(s.startsWith("a"));
        System.out.println(s.endsWith("a"));
        System.out.println(s1.indexOf("b"));
        System.out.println(s1.lastIndexOf("b"));
        System.out.println(s1.toUpperCase());
        System.out.println(s1.toLowerCase());
        System.out.println(Arrays.toString(s2.split("b")));
        System.out.println(s3.trim());
        System.out.println(String.valueOf("10")+10);




    }
}
